package com.design.singleton.lazy;

/**
 * @Author: xiemiao
 * @CreateTime: 2023-05-15  16:46
 * @Description: 懒汉
 * @Version: 1.0
 */
public class LazySingleton {
    private static LazySingleton LAZY_SINGLETON = null;

    private LazySingleton() {
    }

    public static LazySingleton getInstance() {
        if (LAZY_SINGLETON == null) {
            LAZY_SINGLETON = new LazySingleton();
        }
        return LAZY_SINGLETON;
    }
}
